package com.ming.param;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author MING
 * @date 2018/8/10 11:11
 */
@Getter
@Setter
public class LoginParam {

    @NotBlank(message = "用户名不能为空")
    private String userName;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "验证码不能为空")
    @Length(min = 4, max = 4, message = "验证码长度为4位")
    private String captcha;

//    记住我
    private boolean rememberMe;

}
